#ifndef CAMERA_H_
#define CAMERA_H_

#include "tile.h"
#include "collision.h"
#include "sprite.h"

typedef struct{
	
	float x,y;
	int xinimap,yinimap;
	int wmap,hmap;

}SE_camera;


SE_camera *SE_camera_init(float posx,float posy,int xinimap,int yinimap,int wmap,int hmap);
void SE_camera_clean(SE_camera *cam);
void SE_camera_position_set(SE_camera *cam,float posx,float posy);
void SE_camera_map_position_set(SE_camera *cam,int xinimap,int yinimap);
void SE_camera_map_dimentions_set(SE_camera *cam,int wmap,int hmap);
void SE_camera_tilearea_draw(SE_tilemap *tm,SE_tileset *ts,SE_camera *cam,float posx,float posy,float posz);
int SE_camera_tilearea_collision(SE_tilemap *tm,SE_box *box,SE_camera *cam,float tilemap_posx,float tilemap_posy,float box_posx,float box_posy);




















#endif
